// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'SigningId',
        footer: "Foots",
        cnName: '报工',
        name: 'SigningWork',
        url: "/SigningWork/",
        sortName: "SigningId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"SigningCode":"","OrderCode":"","PlanCode":"","SigningNumber":"","Defective":"","ProductionTime":"","CreateTime":""};
    const editFormOptions = [[{"title":"报工编码","required":true,"field":"SigningCode"}],
                              [{"dataKey":"工单台账","data":[],"title":"订单编号","required":true,"field":"OrderCode","type":"select"}],
                              [{"dataKey":"每日计划编码","data":[],"title":"计划编码","required":true,"field":"PlanCode","type":"select"}],
                              [{"title":"报工数量","required":true,"field":"SigningNumber","type":"text"}],
                              [{"title":"次品数量","required":true,"field":"Defective","type":"text"}],
                              [{"title":"生产耗时（分钟）","required":true,"field":"ProductionTime","type":"text"}],
                              [{"title":"创建时间","required":true,"field":"CreateTime","type":"datetime"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'SigningId',title:'SigningId',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'SigningCode',title:'报工编码',type:'string',width:110,require:true,align:'left'},
                       {field:'OrderCode',title:'订单编号',type:'string',bind:{ key:'工单台账',data:[]},width:110,require:true,align:'left'},
                       {field:'PlanCode',title:'计划编码',type:'string',bind:{ key:'每日计划编码',data:[]},width:110,require:true,align:'left'},
                       {field:'SigningNumber',title:'报工数量',type:'int',width:110,require:true,align:'left'},
                       {field:'Defective',title:'次品数量',type:'int',width:110,require:true,align:'left'},
                       {field:'ProductionTime',title:'生产耗时（分钟）',type:'int',width:110,require:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}